<h2 class="title">查看订单</h2>
 <div class="orders-view" style="width: 748px; margin: 0 auto;">


     <p class="info" style="width: 700px;">
        游客信息

        <a href="/guiderchat/user/<{$order.tourist.userUid}>" class="lianxi">联系游客</a>

     </p>

     <div class="user-xin fix" style="width: 700px;">
         <img src="<{$order.tourist.userIcon}>" class="left">
         <div class="center">
             <p class="one">
                 <span class="span">姓名：<{$order.tourist.userName}></span>
                 <span class="span">性别：<{if $order.tourist.userGender == 'm'}>男<{elseif $order.tourist.userGender == 'f'}>女<{else}>未知<{/if}></span>
             </p>
             <p class="two">
                 <span class="span">年龄：<{$order.tourist.userAge}></span>
                 <span class="span">出行人数：<{$order.persons}>人</span>
             </p>
         </div>
     </div>

     <p class="info" style="width: 700px;">订单说明</p>

     <div class="ddinfo" style="width: 700px;">
         <p class="one">支付费用：<strong class="strong"><{$order.moneyTotal/100|@number_format:2}>€</strong> </p>
         <p class="one" title="预定服务：<{$order.serviceName}>">预定服务：<{$order.serviceName}></p>
     </div>

     <p class="info" style="width: 700px;">行程时间</p>

     <div class="xcsj fix" style="width: 700px; border-bottom: none;">
         <span class="start">行程开始时间：<{$order.startDay}> </span>
         <span class="end">行程结束时间：<{$order.stopDay}></span>
     </div>

     <div class="bottom">
         <span class="jujie" onclick="order_handle_request('<{$order.orderNo}>', 'REJECT')">拒绝</span>
         <span class="jies" onclick="order_handle_request('<{$order.orderNo}>', 'OK')">接受</span>
     </div>

 </div>

<script>
function order_handle_request(orderNo, action)
{
    if (action == 'OK')
    {
        layer.confirm('确认要审批通过这个预订请求吗？', {
            title: null,
            btn: ['确认', '放弃'],
        },  function () {

            $.post('/guider/order_handle_request/' + orderNo, {
                'action' : action,
                'message': ''
            }, function (o) {
                window.location.assign('/guider/orders_paid');
            }, 'json');

        },  function () {
            //
        });
    }
    else
    {
        var index = layer.prompt( {

            title: ['请填写拒绝该预订申请的理由：', 'width:340px;'],
            formType: 2,
            value:'控制在100字以内',
            maxlength:100,
            }, function (inputMsg) {
                layer.close(index);
                $.post('/guider/order_handle_request/' + orderNo, {
                    'action' : action,
                    'message': inputMsg
                }, function (o) {
                    window.location.assign('/guider/orders_paid');
                }, 'json');
            }
        );
    }
    return;
}

</script>
<script>
    $(".yuding").addClass("active");
    $('.shenqing').addClass("mactive");
    $('.yuding_nav').addClass("active");
    $('.down-menu').eq(2).show();
</script>
